body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100vh;
    margin: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/爷和流萤.webp');
    background-repeat: no-repeat;
    background-size: cover;
  }

  .calculator {
    background-color: #f0f0f080;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.511);
    padding: 15px;
    border: 4px solid #f0f0f04a;
    width: 100%;
    max-width: 400px;
    transform: scale(1.3);
  }

  .display {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    height: 60px;
    font-size: 2em;
    text-align: right;
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    border-radius: 5px;
    overflow: auto; /* 添加滚动条 */
  }

  .keys {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 10px;
  }

  button {
    width: 100%;
    height: 60px;
    font-size: 1.5em;
    border: 1px solid #dfdfdffe;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    background-color: #f0f0f06b;
    transition: all 0.3s ease-in-out;
  }

  button:hover {
    background-color: #e8e8e8;
    transform: scale(1.1);  
  }
  marquee {
    color: #e8e8e8;
    font-size: 28px;
    font-weight: 600;
    -webkit-text-stroke:1px black;
  }